package cn.iocoder.yudao.module.scrm.controller.admin.order.vo;

import cn.iocoder.yudao.framework.mybatis.core.type.StringListTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 订单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderPageReqVO extends PageParam {

    @Schema(description = "当前登陆用户id和下属id--|| 所选择用户id", example = "0全部订单 1我的订单 2下属订单")
    private List<String> userId;

    @Schema(description = "分页类型", example = "0全部订单 1我的订单 2下属订单")
    private String orderPageType;

    @Schema(description = "关键词", example = "查询 |订单编号|订单标题|订单总金额|客户签约人|我方签约人|备注|")
    private String key;

    @Schema(description = "订单标题")
    private String title;

    @Schema(description = "关联客户id", example = "4499")
    private Integer customerId;

    @Schema(description = "关联产品id", example = "11358")
    private Integer productId;

    @Schema(description = "订单总金额-关联产品后订单金额显示为产品报价总金额；但是可以修改。")
    private BigDecimal orderTotalMoney;

    @Schema(description = "签单日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] signingDate;

    @Schema(description = "订单类型  scrm_order_type", example = "1")
    private String orderType;

    @Schema(description = "开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startDate;

    @Schema(description = "到期日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expireDate;

    @Schema(description = "客户签约人")
    private String clientSignatory;

    @Schema(description = "我方签约人")
    private String ourSignatory;

    @Schema(description = "付款方式   scrm_payment_method")
    private String paymentMethod;

    @Schema(description = "备注信息", example = "随便")
    private String remark;

    @Schema(description = "系统编号")
    private String systemNumber;

    @Schema(description = "归属人员id", example = "14003")
    private String ownerUserId;

    @Schema(description = "前归属人员id", example = "30080")
    private String oldOwnerUserId;

    @Schema(description = "审批流id", example = "1371")
    private String instanceId;

    @Schema(description = "订单是否提交审批    0未提交  1已提交")
    private String instanceIfSubmit;

    @Schema(description = "审批状态-绑定流程表的审批状态")
    private String instanceState;

    @Schema(description = "附件url", example = "https://www.iocoder.cn")
    private List<OrderFileListVo> fileUrl;

    @Schema(description = "备用字段-文件名称")
    private  String vField;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}